@import '../../variable.less';
.user-info{
  background-color: #eee;
  position: relative;
  width: 100%;
  height: 100vh;
  padding:32rpx 32rpx 0rpx;
  box-sizing: border-box;
  .title{
    font-size: @m-fontsize;
    font-weight: bold;
    margin: 32rpx 0rpx;
  }
  .user-panel{
    padding:32rpx;
    box-sizing: border-box;
    font-size: @m-fontsize;
    border-radius: 16rpx;
    background-color: white;
  }
  .info-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16rpx;
    
    margin-bottom: 32rpx;

    .label{
      width: 160rpx;
      flex-shrink: 0;
    }
    .value{
      width: calc(100% - 160rpx);
      
      &.head-img{
        width: 96rpx;
        height: 96rpx;
        border-radius: 96rpx;
        position: relative;
        .head-btn{
          width: 100%;
          height: 100%;
          position: absolute;
          top:0;
          left: 0;
          opacity: 0;
        }
        .image{
          width: 100%;
          height: 100%;
          border-radius: 96rpx;
        }
      }
      &.value-nickname{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        .value-txt{
          overflow: hidden;
          text-overflow: ellipsis;
          word-break: keep-all;
          white-space: nowrap;
        }
      }
    }
  }
  .avatar{
    width: 100%;
  }
}
.nick-dialog{
  position: fixed;
  top:30%;
  left:50%;
  transform: translateX(-50%);
  width: 80%;
  font-size: @m-fontsize;
  padding: 32rpx;
  border-radius: 32rpx;
  background-color: white;
  .title{
    text-align: center;
    font-weight: bolder;
  }
  .input-wrap{
    width: 100%;
    height: @default-btn-height;
    line-height: @default-btn-height;
    margin-top: 32rpx;
    border:1rpx solid #eee;
    .input{
      width: 100%;
      height: 100%;
      line-height: inherit;
      box-sizing: border-box;
      border-radius: 16rpx;
      padding:0rpx 16rpx;
      font-size: @m-fontsize;
      
    }
  }
  .btn-wrap{
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 32rpx;
    .btn{
      width: 45%;
      text-align: center;
      border-radius: calc(@default-btn-height / 2);
      height: @default-btn-height;
      line-height: @default-btn-height;
      &.cancel-btn{
        border:1rpx solid #eee;
        color: black;
        background-color: @minor-btn-color;
      }
      &.confirm-btn{
        background-color: #e83a2f;
        color: white;
      }
    }
  }
}